<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>调查问卷管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/wechat/questionnaire/question/voterResult?questionnaireId=${questionnaire.id}">投票结果列表</a></li>
	</ul>
	<tags:message content="${message}"/>
		
		
			<div style="border-width: 1px;border-color: #DDDDDD;height:35px;background-color:#e0ecec;">${question.question }</div>
			<table id="contentTable" class="table table-striped table-bordered "  style="margin-bottom:9px;">
				<thead><tr class="warning"><th style="background:#fefaef;background-image:#e0ecec;" >竞选人</th><th style="background:#fefaef;">比例</th><th style="background:#fefaef;">人数</th></tr></thead>
				<tbody>
						<c:forEach items="${questionList}" var="question">
						<tr>
						<td>${question.voterName }</td>
						<td>   
						 <div class="progress progress-striped" style="margin-bottom:0px;">
					    		<div class="bar" style="width: ${question.number/number*100}%;">${fn:substring(question.number/number*100,0,5)}%</div>
					    </div>
    					 </td>
						<td>${question.number}</td>
						</tr>
						</c:forEach>
				</tbody>
			</table>
	<div class="pagination">${page}</div>
</body>
</html>
